gl_list = [6,3,9]
gl_list.sort()  # 将常见的值设置为参数的缺省参数值，从而简化函数的调用
print(gl_list)
gl_list.sort(reverse = True)
print(gl_list)


# 指定函数的缺省参数
def print_info(name,gender=True):
    gender_text = "man"
    if not gender:
        gender_text = "woman"
    print("%s is %s" % (name,gender_text))

print_info("xiaoming")
print_info("leo",False)




